package entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the AUTHENTICATION database table.
 * 
 */
@Entity
public class Authentication implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="CUSTOMER_USERNAME")
	private String customerUsername;

	@Column(name="EMAIL_ID")
	private String emailId;

	private String password;

	//bi-directional one-to-one association to Customer
	@OneToOne
	@JoinColumn(name="CUSTOMER_ID")
	private Customer customer;

    public Authentication() {
    }

	public String getCustomerUsername() {
		return this.customerUsername;
	}

	public void setCustomerUsername(String customerUsername) {
		this.customerUsername = customerUsername;
	}

	public String getEmailId() {
		return this.emailId;
	}

	public void setEmailId(String emailId) {
		this.emailId = emailId;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	
}